<template>
  <div class="moreAction-page">
    <!-- 状态一-->
    <van-cell-group v-if="!isReport">
      <van-cell @click="$emit('dislikeClick')">不感兴趣</van-cell>
      <van-cell is-link @click="isReport = true">反馈垃圾内容</van-cell>
      <van-cell>拉黑作者</van-cell>
    </van-cell-group>
    <!-- 状态二-->
    <van-cell-group v-else>
      <van-cell icon="arrow-left" @click="isReport = false">返回</van-cell>
      <van-cell
        v-for="item in reportsList"
        :key="item.value"
        @click="$emit('inform', item.value)"
        >{{item.label}}</van-cell>
    </van-cell-group>
  </div>
</template>

<script>
import reportsList from '@/constant/reports'
export default {
  name: 'MoreAction',
  data () {
    return {
      isReport: false, // 控制内容转换
      reportsList: reportsList // 举报列表
    }
  }
}
</script>

<style lang="less" scoped>

</style>
